'use strict';

angular.module('app.index', [
])

.config(['$stateProvider',function ($stateProvider) {
    $stateProvider
        .state('app.index',{
            url:'/index',
            views:{
                '':{templateUrl:'index/views/index.html',
                    controller: 'indexCtrl'
                },
                'content@app.index':{
                    templateUrl:'index/views/content.html',
                    controller:'contentCtrl'
                },
                'banner@app.index':{
                    templateUrl:'index/views/banner.html',
                    controller:'bannerCtrl'
                }
            },
            resolve:{
                user:function(){
                    return {
                        name:"perter",
                        email:"826415551@qq.com",
                        age:"18"
                    }
                }
            }
        })
}]);
